<style type="text/css">
    .label{
    	color: white;
        border-right-width: inherit;
        background: tan;
		background-color: black;
    }
    
    .table{
		border-color: black;
    }
</style>
<?php
 
class Form_Login extends Zend_Form
{

   

    public function __construct($option=null)

   {

       

       parent::__construct($option);

  

       $this->setMethod('post');

  

       $username=$this->CreateElement('text','login')

  
                       
                       ->setLabel('User Name:');

  
		$username->setDecorators(array(

  

                   'ViewHelper',                   

                   'Description',

                   'Errors',
           
        			           
		
                   array(array('data'=>'HtmlTag'), array('tag' => 'td', 'class'=>'label')),

                   array('Label', array('tag' => 'td')),             
                   
                   array(array('row'=>'HtmlTag'),array('tag'=>'tr', 'class'=>'label')),
                 
                   

  

           ));

  

       $password=$this->CreateElement('text','senha')

  

                       ->setLabel('Password');

  

       $password->setDecorators(array(

  

                   'ViewHelper',

                   'Description',

                   'Errors',

                   array(array('data'=>'HtmlTag'), array('tag' => 'td', 'class'=>'label')),

                   array('Label', array('tag' => 'td')),

                   array(array('row'=>'HtmlTag'),array('tag'=>'tr', 'class'=>'label')),
                   
                   
                   

  

       ));

  

       $submit=$this->CreateElement('submit','submit')
               

                       ->setLabel('Login');

  

       $submit->setDecorators(array(

  

               'ViewHelper',

               'Description',

               'Errors', array(array('data'=>'HtmlTag'), array('tag' => 'td',

               'colspan'=>'2','align'=>'center')),

               array(array('row'=>'HtmlTag'),array('tag'=>'tr'))

  

       ));

  

       $this->addElements(array(

  

               $username,

               $password,

               $submit

  

       ));

  

       $this->setDecorators(array(

  

               'FormElements',

               array(array('data'=>'HtmlTag'),array('tag'=>'table', 'class'=>'table', 'border'=>'1')), 
               
               'Form'

  

       ));



   }

}
